<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
		$this->display();
    }
    public function shengchen(){
		unlink("./Application/Home/View/Index/shengcheng.html");
    	$htmlaa=htmlspecialchars_decode(I('htmlaa'));
    	$res=file_put_contents("./Application/Home/View/Index/shengcheng.html",$htmlaa, FILE_APPEND);
    	if($res){
    		$this->ajaxReturn(array('data'=>1),'json');
    	}else{
    		$this->ajaxReturn(array('data'=>2),'json');
    	}
    }
	public function shengcheng(){
    	$this->display();
    }
}